home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
os2
/
srefv112.zip
/
ALIASES.IN
next >
Wrap
Text File
|
1996-05-12
|
5KB
|
95 lines
; This contains the SRE-FILTER sample alias file. 5/96
;
; General Purpose: Aliases are used to modify and transform the request string.
;
; There are several reaons for wanting to do this:
; Substituting for common "misspellings and abbreviations"
; Implementing searchable indices.
; Redirecting requests for moved URLS
; Setting path for CGI-BIN scripts
; (OBSOLETE) Transferring non-data-directory files.
;;
; General Usage: each line contains a TARGET followed by a
; REPLACEMENT. Spaces should seperate these two items.
; The TARGET should have NO embedded spaes.
; Also note that in the TARGET, we convert / to \, and drop any leading / (or \).
;
; SRE-FILTER attempts to (exact or wildcard) match the request string
; with each TARGET.
; If a match is found, the request string is replaced by the
; REPLACEMENT, with possible "wildcard substitution".
;
; "Wildcard substitution" occurs only if a * appears in the REPLACEMENT
; and in the TARGET. When this occurs, and the request string "wildcard"
; matches the TARGET, a textual substitution will occur in the REPLACEMENT.
; Specifically, the * in the REPLACEMENT will be removed, and
; the portion of the request string "covered" by the * (in the
; TARGET) will be inserted in it's place.
; Examples,given:
; Request string: /CATS/A14.HTM
; an an alias entry with
; Target: /CATS/*
; Replacement: /SHOP1/PETS/FELINES/PUREBRED/*
; will yield:
; /SHOP1/PETS/FELINES/PUREBRED/A14.HTM
; Note that the A14.HTM in the request string is "covered"
; by the * in the TARGET.
;
; ----------------- Some Examples -------------------
;
; 1) Replace a "misspelling or abbreviation" with a URL
; INDEX INDEX.HTM
;
; 2) Implementing searchable indices (using SRE-FILTER's DOSEARCH utility)
; In this example, CONGRESS.DAT will be searched using the search
; parameters returned by the client
; TESTSRCH.HTM?* DOSEARCH?file=/congress.dat&searchfor=*&delim=$
; If ROOTC/ is a virtual directory for C:\USERS\, this will search
; C:\USERS\JOES.LST
; LOOKUSER.HTM?* dosearch?file=/ROOTC/JOES.LST&searchfor=*&delim=0
;
; 3) The next 3 examples performs redirectons.
; i) This (note use of a full URL, including the http://)
; causes a "temporary move" (http status code 302) redirection.
; YAH* http://www.yahoo.com/
; ii)Specifies the same thing, but the URL that follows
; need not be comletely specified (if the ip domain is left out, it is
; assumed to be to be back to your server.) Of course, to be safe one
; should always specify the full URL (complete with http://)
; WAH* !MOVED www.yahoo.com/
; iii) A "permanent" move (http code 301) otherwise it's the same as example ii.
; ZAH* !TEMP http://www.yahoo.com/
;
; Notes case is sometimes crucial when specifying URLs.
;
; 4) Specifying location of CGI-BIN script.
; This example instructs SRE-FILTER to look for SCRIPT10 in d:\PROGS\NEW
; (rather the the default, "cgi_bin_dir", script directory)
; SCRIPT10 d:\progs\new
;
; 5) Transfering files from anywhere (OBSOLETE-- we recommend use of
; virtual directories instead).
; GETMAP?* !TRANSFER=e:\MAPS\*
; Note that this assumes that 1 argument is appended to the URL (say by
; a FORM of type GET)
;
;
; ***************************** CAUTION ******************************
; Unless you explicitly want to "alias" actual files, directories,
; or "server side program" names...
; we HIGHLY RECOMMEND that all entries in this file
; have "targets" that do NOT MATCH pre-existing files,
; directories, or "actions".
; {and be especially careful if you are using any wildcard matches)
;
; ---- - - -------- End of samples --- - - - - - -- - -
;
; The following are included just as examples, they can be removed with
; little ill effect. Note that the dopublic alias is designed
; to work with the default "public_files" entries (set in initiflt.80)
SAMPLES/TESTSRCH.HTM?* DOSEARCH?file=samples/congress.dat&delim=$&search=*
INDEX INDEX.HTM
WEBSEARCH/* http://www.webcrawler.com/cgi-bin/WebQuery/?*
dopublic getafile?dir=pubfiles/&showsize=yes&showdate=yes&showdir=yes&rootdir=pubfiles/&dispfile=read.me+Description+of+files&table=key&usedl=YES&tablefile=files.key+file+descriptions